/*================================================================================
*
*
*                                   
*
*
* 项目名称: mcp2515-spi-can-demo
* 文件名称: ModbusTable.c
* 创建日期: 21-03-27
* 文件描述: 
*
================================================================================*/
#include "ModbusTable.h"

//-public data-------------------------------------------------------------------
uint16_t g_u16ColorRed;
uint16_t g_u16ColorGreen;
uint16_t g_u16ColorBlue;
uint16_t g_u16Luminance;
uint16_t g_u16LedState;

uint16_t g_u16ColorRedtoSet;
uint16_t g_u16ColorGreentoSet;
uint16_t g_u16ColorBluetoSet;
uint16_t g_u16LuminancetoSet;

//-private data------------------------------------------------------------------
static uint16_t u16DataReserve;
#define REG_RESERVE             &u16DataReserve

const MbReg_t InputReg[INPUT_REG_SIZE]= //0x04
{
    { 0, (uint16_t*)&g_u16ColorRed   },
    { 1, (uint16_t*)&g_u16ColorGreen },
    { 2, (uint16_t*)&g_u16ColorBlue  },
    { 3, (uint16_t*)&g_u16Luminance  },
    { 4, (uint16_t*)&g_u16LedState   },
    { 5, REG_RESERVE                 },
    { 6, REG_RESERVE                 },
    { 7, REG_RESERVE                 },
    { 8, REG_RESERVE                 },
    { 9, REG_RESERVE                 },
};

const MbReg_t HoldReg[HOLD_REG_SIZE]= //0x03
{
    { 0, (uint16_t*)&g_u16ColorRedtoSet   },
    { 1, (uint16_t*)&g_u16ColorGreentoSet },
    { 2, (uint16_t*)&g_u16ColorBluetoSet  },
    { 3, (uint16_t*)&g_u16LuminancetoSet  },
    { 4, REG_RESERVE                      },
    { 5, REG_RESERVE                      },
    { 6, REG_RESERVE                      },
    { 7, REG_RESERVE                      },
    { 8, REG_RESERVE                      },
    { 9, REG_RESERVE                      },
};
